var bulkload = {
	title : "Bulk Load",
	sections : {
		fileload : {
			title : "File Load", ////////////////
			alias : "File Load",
			components : [{
				type : "form",
				contents : [{
					title : "Filter Items",
					schema : {
						selecttype : {
							back : "FILE.TYPE",
							label : "File Type",
							type : "Select",
							options: ["Issue Asset Add","Issue Asset Change","Issue Asset Drop"]
						},
						selectpriority : {
							back : "FILE.PRORITY",
							label : "Prority",
							type : "Select",
							options: [1,2,3]
						}
					}
				}]
			}, {
				type : "table",
				id : "BULKLOAD",
				//caption : "<div align='right'><span class='btn btn-small btn-primary fileinput-button'><i class='icon-plus icon-white'></i><span>Add files...</span><input id='fileupload' type='file' name='files[]' multiple></span><div class='span3 fileupload-progress fade'><div class='progress progress-success progress-striped active' role='progressbar' aria-valuemin='0' aria-valuemax='100'><div class='bar' style='width:0%;'></div></div></div></div>",
				caption: "<div align='left'><form id='fileupload' method='POST' enctype='multipart/form-data'><span class='btn btn-small btn-primary fileinput-button'><i class='icon-plus icon-white'></i><span>Add files...</span><input type='file' name='upload' multiple></span><button id='btnCancel' type='reset' class='btn btn-small btn-primary cancel'><i class='icon-ban-circle icon-white'></i><span>Cancel upload</span></button><input type='hidden' id='type' name='type'/><input type='hidden' id='priority' name='priority' /></form><div id='progress' class='progress progress-success progress-striped active' role='progressbar' aria-valuemin='0' aria-valuemax='100'><div class='bar' style='width:0%;'></div></div></div>",
				history : false,
				readOnly : true,
				cols : [{
					name : "File Type",
					field : "type",
					type : "String",
					editable: false
				},{
					name : "Flag",
					field : "flag",
					type : "String",
					editable: false
				},{
					name : "Status",
					field : "status",
					type : "String",
					editable: false
				},{
					name : "File Name",
					field : "filename",
					type : "String",
					editable: false
				}, {
					name : "Destination",
					field : "destination",
					type : "String",
					editable: false
				}, {
					name : "Size",
					field : "size",
					type : "String",
					editable: false
				}]
			}]
		},		
		loadhistory : {
			title : "File Load History", ////////////////
			alias : "File Load History",
			components : [{
				type : "form",
				contents : [{
					title : "Filter Items",
					schema : {
						createby : {
							back : "BULK.CREATEBY",
							label : "Create By",
							type : "Text"
						},
						createdate : {
							back : "BULK.CREATEDATE",
							label : "Create Date",
							type : "jqueryui.Date",
							validators : [/*'required',*/
							{
								type : "dateFormat",
								format : "dd-MM-yyyy"
							}]
						},
						modifydate : {
							back : "BULK.MODIFYDATE",
							label : "Modify Date",
							type : "jqueryui.Date",
							validators : [/*'required',*/
							{
								type : "dateFormat",
								format : "dd-MM-yyyy"
							}]
						},
						priority : {
							back : "BULK.PRORITY",
							label : "Prority",
							type : "Select",
							options: [1,2,3]
						}
					}
				}]
			}, {
				type : "table",
				id : "BULKLOADHISTORY",
				caption : "<div align='right'><button id='btnFHSearch' type='button' class='btn btn-small btn-primary'><i class='icon-search icon-white'></i><span>Search</span></button></div>",
				history : false,
				readOnly : true,
				cols : [{
					name : "ID",
					field : "nda_id",
					type : "String"
				}, {
					name : "File Type",
					field : "type",
					type : "String"
				}, {
					name : "Create Date",
					field : "create_date",
					type : "String"
				}, {
					name : "Create By",
					field : "create_by",
					type : "String"
				}, {
					name : "Modify Date",
					field : "modify_date",
					type : "String"
				}, {
					name : "Modify By",
					field : "modify_by",
					type : "String"
				}, {
					name : "File Name",
					field : "file_name",
					type : "String"
				}, {
					name : "Status",
					field : "status",
					type : "String"
				}, {
					name : "Priority",
					field : "priority",
					type : "String"
				}]
			}]
		}
	}
};

var form_columns = {}; 